//
//  MHeadView.m
//  XDBaseFrameWork
//
//  Created by XD-XY on 9/20/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "MHeadView.h"

@implementation MHeadView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self initViews];
    }
    return self;
}

-(void)initViews
{
    self.userInteractionEnabled = YES;
    
    self.emplIV = [UIImageView initImageViewRect:CGRectMake(21, 8, 61, 61) andImage:LOADIMAGE(@"placeholderHeader@2x") andUserInteractionEnabled:YES];
    _emplIV.layer.masksToBounds = YES;
    _emplIV.layer.cornerRadius = 61/2.0f;
    
    [self addSubview:_emplIV];
        
    self.emplNameLB = [UILabel initLabelText:@"" andRect:CGRectMake(width_x(_emplIV)+20, 35/2.0f, 246/2.0f, 25) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:16] andTextColor:[UIColor blackColor] andTextAlignment:NSTextAlignmentLeft];
    [self addSubview:_emplNameLB];
    
    self.emplLeveLB = [UILabel initLabelText:@"" andRect:CGRectMake(_emplNameLB.frame.origin.x, 85/2.0f, 246/2.0f, 49/2.0f) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:15] andTextColor:UIColorFromRGB(0x6f6254) andTextAlignment:NSTextAlignmentLeft];
    [self addSubview:_emplLeveLB];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
